package com.xinqi.modules.exam.student.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.exam.student.domain.CourseExamPaperErrorSetEntity;
import com.xinqi.modules.exam.student.dto.req.CourseExamPaperErrorSetQueryDTO;
import com.xinqi.modules.exam.student.dto.rsp.CourseExamPaperErrorSetResultDTO;
import com.xinqi.modules.exam.student.dto.rsp.CourseExamPaperErrorSetStatsDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程测评学生错题集数据层
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Mapper
public interface CourseExamPaperErrorSetMapper extends SuperMapper<CourseExamPaperErrorSetEntity> {
    Page<CourseExamPaperErrorSetResultDTO> findPage(Page<Object> page, @Param("dto") CourseExamPaperErrorSetQueryDTO query);

    List<CourseExamPaperErrorSetResultDTO> findList(@Param("dto") CourseExamPaperErrorSetQueryDTO query);

    CourseExamPaperErrorSetStatsDTO statsData(@Param("dto") CourseExamPaperErrorSetQueryDTO dto);
}
